Release 10.1A: OpenEdge Development:
Progress 4GL Handbook
Browse selection and query interaction
When a browse is initialized, the buffer for its query contains the first record in the query, since the user has not yet selected a record. To keep the browse in sync with the query, the buffer contains the first record in the browse viewport while there is no selected record. Whenever the user selects a row, that row becomes the current row in the query’s buffer.
In a multiple-select browse, if you deselect the current row, the query is repositioned to the previously selected row. If no rows are selected, the query is repositioned to the first record in the viewport.
Table 12–1 summarizes how actions on the browse affect the associated query.
Using the
GETstatement (such asGET NEXT) to navigate within the result list of the query has no effect on the browse. However, theREPOSITIONstatement does update the current position of the browse. If you useGETstatements for a query on which a browse is defined, you should use theREPOSITIONstatement to keep the browse synchronized with the query. Also, when you open or reopen the query with theOPEN QUERYstatement, the browse is automatically refreshed and positioned to the first record.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |